package top.xiangqifu.springboot2.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色信息表
 *
 * @author 向启福
 */
@TableName("tb_role")
@ApiModel(value = "角色信息" , description = "角色信息应答对象")
@Data
public class TbRole implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键",example = "1")
    @ApiParam(hidden = false)
    private Integer rid;
    @ApiModelProperty(value = "角色名称",example = "管理员")
    @ApiParam(hidden = false)
    private String roleName;
    @ApiModelProperty(value = "角色描述",example = "网站后端负责人")
    @ApiParam(hidden = false)
    private String roleInfo;
    @TableLogic
    @TableField(updateStrategy = FieldStrategy.NEVER, insertStrategy = FieldStrategy.NEVER)
    @ApiModelProperty(value = "逻辑删除标记",example = "n")
    @ApiParam(hidden = false)
    private String deleted;
}
